'''
Created on 2016年9月2日

@author: maliqiang
'''
list = ['aa','bb'];
print(list[0])
print ('112122')


from pickle import UNICODE
s='test'
#按下标取值
print(s[0])
#循环语句
for letter in s:
    print(letter)

file = 'read.txt'
mode = 'wb'

# fo=open(file, mode)
# fo.write('this is a test file'.encode(encoding='utf_8'));
# fo.close()

name = 'mark'
# name[0]='d'
name = 'd'+name[1:]
print(name)
#类型转换和位置查找
print("查找a在name中的位置："+str(name.find('a')))
print(int('100'))
#替换值
print('hello'.replace('h','H'))

line = 'mark,gao,jerry'
#标识符截取字串
ary = line.split(sep=',', maxsplit=1)
for letter in ary:
    print(letter)
#获取ASCII码值
print(ord('a'))



